# loc/personal_finance_page_locators.py
from selenium.webdriver.common.by import By

class PersonalFinancePageLocators:
    """个人理财页面元素定位器"""
    # 购买弹窗
    PURCHASE_PASSWORD_INPUT = (By.XPATH, '/html/body/div[3]/div[2]/input')
    CONFIRM_PURCHASE_BUTTON = (By.XPATH, '/html/body/div[3]/div[3]/a[1]')

    # 购买成功弹窗
    PURCHASE_SUCCESS_CONFIRM_BUTTON = (By.XPATH, '/html/body/div[3]/div[2]/div/div/div/div/div/div/div/div[4]/button')
    PURCHASE_SUCCESS_MESSAGE = (By.XPATH, '...') # 假设有购买成功的提示信息，用于断言